package View
{
	import laya.events.Event;
	
	import ui.GameStartUI;
	
	/**
	 * 类描述
	 * @author sixsir
	 * @date 2016-11-26上午11:32:35
	 */
	public class GameStartView extends GameStartUI
	{
		public function GameStartView()
		{
			super();
			
			this.btnStart.on(Event.CLICK,this, onBtnClick);
		}
		
		private function onBtnClick():void
		{
			this.removeSelf();
			
			if(!DaDiShu.gameView)
			{
				DaDiShu.gameView = new GameView();
			}
			
			DaDiShu.gameView.gameStart();
			Laya.stage.addChild(DaDiShu.gameView);
		}
	}
}